<fieldset id="add_work_item" style="display:none">
  <legend>添加新的工作项</legend>
  <%form_for :work_item,:url=>{:controller=>'work_items',:action=>'create'} do |f|%>
    <div id="errors" class="new_html_block" style="display:none">
    </div>
    <br/>
    <%if @event%>
      <%=hidden_field_tag 'event',event.id%>
    <%end%>
    <div class="fields text_fields">
      <%= f.label :name,'工作项名称:' %><%= f.text_field :name %><br clear="all"/>
    </div>
    <div class="fields text_fields">
      <%= f.label :start_date,'计划开始时间:' %>
      <input type="text" class="datepicker" name="work_item[start_date]">
      <br clear="all"/>
    </div>
    <div class="fields select_fields">
      <%= f.label :end_date,'计划完成时间:' %>
      <input type="text" class="datepicker" name="work_item[end_date]">
      <br clear="all"/>
    </div>
    <div class="fields text_editor_fields">
      <%= f.label :description,'工作项描述:' %><br clear="all"/>
      <%= f.text_area :description %><br clear="all"/>
    </div>
    <div class="buttons">
      <div class="lt_button">
        <%= f.submit '保存工作项',:class=>'submit'%>
      </div>
    </div>
  <%end%>
</fieldset>